{% macro get(request, mb_id, name='', email='', homepage='') -%}
    {% set bo_table = request.path_params.bo_table %}
    {% set use_member_icon = request.state.config.cf_use_member_icon %}
    {% if mb_id %}
        <span class="sv_wrap position-relative fw-normal">
            <a href="/bbs/profile/{{ mb_id }}" class="sv_member" title="{{ name }} 自我介绍" target="_blank" rel="nofollow" onclick="return false;">
                {% if use_member_icon != 0 %}
                <span class="profile_img"><img src="{{ get_member_icon(mb_id) }}" width="22" height="22" alt=""></span>
                {% endif %}
                {% if use_member_icon != 1 %}
                {{ name }}
                {% endif %}
            </a>
            <span class="sv" style="z-index: 1000;">
                <a href="/bbs/memo_form?me_recv_mb_id={{ mb_id }}" rel="nofollow" onclick="win_memo(this.href); return false;">发送便笺</a>
                {% if email %}
                    <a href="/bbs/formmail/{{ mb_id }}?name={{ name }}&email={{ encrypt(email) }}" onclick="win_email(this.href); return false;" rel="nofollow">发送邮件</a>
                {% endif %}
                {% if homepage %}
                    <a href="{{ homepage }}" rel="nofollow noopener" target="_blank">主页</a>
                {% endif %}
                <a href="/bbs/profile/{{ mb_id }}" onclick="win_profile(this.href); return false;" rel="nofollow">自我介绍</a>
                {% if bo_table %}
                    <a href="{{ request.url.include_query_params(sfl="mb_id,1", stx=mb_id) }}" rel="nofollow">按Iddy搜索</a>
                {% endif %}
                <a href="/bbs/new?mb_id={{ mb_id }}" class="link_new_page" onclick="check_goto_new(this.href, event);" rel="nofollow">完整的帖子</a>
                {% if request.state.is_super_admin -%}
                    <a href="/admin/member_form?mb_id={{ mb_id }}" target="_blank" rel="nofollow">更改会员信息</a>
                    <a href="/admin/point_list?sfl=mb_id&stx={{ mb_id }}" target="_blank" rel="nofollow">点历史记录</a>
                {%- endif %}
            </span>
        </span>
    {% else %}
        {% if bo_table %}
            <span class="sv_wrap position-relative fw-normal">
                <a href="/board/{{ bo_table }}?sfl=wr_name,1&stx={{ name }}" title="{{ name }} 按名称搜索" class="sv_guest" rel="nofollow" onclick="return false;">
                    {{ name }}
                </a>
                <span class="sv">
                    <a href="/board/{{ bo_table }}?sfl=wr_name,1&stx={{ name }}" rel="nofollow">按名称搜索</a>
                    {% if email %}<a href="/bbs/formmail/{{ mb_id }}?name={{ name }}&email={{ encrypt(email) }}" onclick="win_email(this.href); return false;" rel="nofollow">发送邮件</a>{% endif %}
                    {% if homepage %}<a href="{{ homepage }}" rel="nofollow noopener" target="_blank">主页</a>{% endif %}
                </span>
            </span>
        {% else %}
            {{ name }}
        {% endif %}
    {% endif %}
{%- endmacro %}